<?php

declare(strict_types=1);

namespace app\core\DB\Test;

use app\core\RedisDB;
class Rdb{
  
    private $instance=null;
    public function __construct()
    {
        
        $this->instance=RedisDB::getInstance();
    }
    
    public function __call($name, $arguments)
    {   
        $conn=$this->instance->getConnection();
        $ret=$conn->{$name}(...$arguments);
        $this->instance->close($conn);
        return $ret;
    }

    
}